<?php
/**
 * Created by PhpStorm.
 * User: zq
 * Date: 2017/2/21
 * Time: 14:56
 */

namespace Common\Model;


class TypeAttrModel extends BaseModel
{
    //主键名称
    protected $pk = 'aid';
    //数据表名
    protected $tableName='type_attr';
    //自动验证
    protected $_validate =[
        ['aname','require','属性名称不能为空'],
        ['avalue','require','属性值不能为空'],
    ];


}